<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>所有班级</h1>
    <table border="1" cellspacing="0">
        <thead>
            <tr>
                <th>班级号</th>
                <th>班级名称</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {{ each classData value index}}
            <tr>
                <td>{{ value.id }}</td>
                <td>{{ value.name }}</td>
                <td>
                    <a href="/updateClassByIdPage?id={{ value.id }}">修改</a>
                    <a href="/deleteClassById?id={{ value.id }}">删除</a>
                </td>
            </tr>
            {{ /each }}
        </tbody>
    </table>
</body>
</html>